/**
 * @(#)PageinationEntity.java Nov 10, 2009
 *   
 * Copyright  (c) 2009-2013 XLab,  Org. 
 * All  rights  reserved.   
 * TODO
 */

package org.xlab.baseframework.common.entity;

import java.io.Serializable;

import org.xlab.baseframework.system.Declare;

/**
 * <p>
 * 分页实体
 * </p>
 * 
 * @author MaKuBEX Email:makubexnet@gmail.com
 * @version 1.0.0
 */
public class PageinationEntity implements Serializable {

	/**
	 * @serialField
	 */
	private static final long serialVersionUID = 1368890919599590531L;

	private int start;
	private int limit;

	/**
	 * <p>
	 * 默认构造函数
	 * </p>
	 */
	public PageinationEntity() {
		super();
		this.start = 0;
		this.limit = Declare.SYSTEM_DEFAULT_PAGEINATION_LIMIT;
	}

	/**
	 * <p>
	 * 完整构造函数
	 * </p>
	 * 
	 * @param start
	 *            起始位置
	 * @param limit
	 *            查询长度
	 */
	public PageinationEntity(int start, int limit) {
		super();
		this.start = start;
		this.limit = limit;
	}

	/**
	 * @return the limit
	 */
	public int getLimit() {
		return limit;
	}

	/**
	 * @return the start
	 */
	public int getStart() {
		return start;
	}

	/**
	 * @param limit
	 *            the limit to set
	 */
	public void setLimit(int limit) {
		this.limit = limit;
	}

	/**
	 * @param start
	 *            the start to set
	 */
	public void setStart(int start) {
		this.start = start;
	}

}
